home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / c_toolbx.arc / TESTPOS.C < prev    next >
Encoding:
C/C++ Source or Header  |  1988-03-30  |  457 b   |  24 lines

  1. /* testpos.c - test viewpos.c (get_pos function)  */
  2. #include "stdio.h"
  3. #include "cminor.h"
  4. #include "viewcmds.h"
  5. #include "viewparm.h
  6. long filesize  ;
  7. long get_pos() ;
  8.  
  9. main()
  10.   {
  11.      int cmd  ;             /* holds current cmd    */
  12.      long pos ;
  13.  
  14.      printf("\n\n testing get_pos\n") ;
  15.      printf("file size:") ;
  16.      scanf ("%s",&filesize) ;
  17.      pos = get_pos()  ;
  18.     {  printf(" get_pos = %1d \n",pos)  ;
  19.        pos = get_pos() ;
  20.     }
  21.   }
  22.  
  23.  
  24.